package com.trkj.pojos;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;


/**
 * The persistent class for the STOCK_TAKING_DETAIL database table.
 * 
 */
@Entity
@Table(name="STOCK_TAKING_DETAIL")
@NamedQuery(name="StockTakingDetail.findAll", query="SELECT s FROM StockTakingDetail s")
public class StockTakingDetail implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="STOCK_TAKING_DETAIL_ID")
	private long stockTakingDetailId;

	private BigDecimal num;

	//bi-directional many-to-one association to StockTakingId
	@ManyToOne
	@JoinColumn(name="STOCK_TAKING_ID")
	private StockTakingId stockTakingIdBean;

	//bi-directional many-to-one association to Supply
	@ManyToOne
	@JoinColumn(name="SUPPLIES_ID")
	private Supply supply;

	public StockTakingDetail() {
	}

	public long getStockTakingDetailId() {
		return this.stockTakingDetailId;
	}

	public void setStockTakingDetailId(long stockTakingDetailId) {
		this.stockTakingDetailId = stockTakingDetailId;
	}

	public BigDecimal getNum() {
		return this.num;
	}

	public void setNum(BigDecimal num) {
		this.num = num;
	}

	public StockTakingId getStockTakingIdBean() {
		return this.stockTakingIdBean;
	}

	public void setStockTakingIdBean(StockTakingId stockTakingIdBean) {
		this.stockTakingIdBean = stockTakingIdBean;
	}

	public Supply getSupply() {
		return this.supply;
	}

	public void setSupply(Supply supply) {
		this.supply = supply;
	}

}